package org.jeecg.modules.demo.spcWeeklyPlan.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.spcWeeklyPlan.entity.SpcWeeklyPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 周计划
 * @Author: jeecg-boot
 * @Date:   2023-10-23
 * @Version: V1.0
 */
public interface SpcWeeklyPlanMapper extends BaseMapper<SpcWeeklyPlan> {

    String getMaxCode();

    @Select("SELECT so_con_no FROM spc_weekly_plan t where t.so_con_no = #{conNum}")
    List<HashMap> generatedWeekPlan(String conNum);
}
